Skip to main content

mouseLine

Type

function

Summary

Returns a chunk expression describing the location of the line of text under the mouse pointer.

Syntax

the mouseLine
mouseLine()

Description

Use the mouseLine function within a handler to determine which line the mouse is hovering over, in order to take some action based on the click.

The mouseLine function only returns locations in a field. If the mouse pointer is not over a field, the mouseLine function returns empty.

To get a chunk expression describing the exact word or text group that the mouse is over, use the mouseChunk function.

Examples

the mouseLine
set the backgroundColor of the mouseLine to "yellow"

function: mouseCharChunk, mouseChar, clickLine, foundLine, selectedLine

glossary: handler, mouse pointer, return, chunk expression

keyword: field, line

control structure: function

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?